package com.cctc.config;

import lombok.Data;

/**
 * @Name TestDataSource
 * @Description: 数据源配置
 * @Author: lichao
 * @Email: li2chao@126.com
 * @Date: 2024-01-14 12:09:28
 **/
@Data
public class TestDataSource {

    private String driverClassName;
    private String url;
    private String username;
    protected String password;

    public TestDataSource() {}
    public TestDataSource(String driverClassName, String url, String username, String password) {
        this.driverClassName = driverClassName;
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public void close() {
        this.driverClassName = "";
        this.url = "";
        this.username = "";
        this.password = "";
    }

}

